package valueObjects
{
	import mx.collections.ArrayCollection;
	import valueObjects.CountryData;
	
	public class ConstantsObject
	{
		public var dichotomyIterations:Number=10;
		public var systemIterations:Number=10;
		public var tau:Number=0.1;
		public var a:Number=1.01;
		public var realData:ArrayCollection;
		public var initialMainArray:ArrayCollection;
		
		public function ConstantsObject()
		{
			
				
			// Initial data
			
			
		}
		public function getInitialMainArray():ArrayCollection
		{
			this.initialMainArray= new ArrayCollection([
				new CountryData("Russia",0.45,true),
				new CountryData("USA",0.408,true),
				new CountryData("Namibia",0.74,true)]);
			return initialMainArray;
		}
		public function getRealData():ArrayCollection
		{
			var resultArrayCollection:ArrayCollection=new ArrayCollection();
			var country:CountryData;
			
			country=new CountryData("Russia(real data)",0.0,true);
			country.isRealData=true;
			country.SalaryDistribution=new ArrayCollection([0.0604,0.0984,0.1426,0.2093,0.4893]);
			resultArrayCollection.addItem(country);
			
			
			country=new CountryData("Namibia(real data)",0.0,true);
			country.isRealData=true;
			country.SalaryDistribution=new ArrayCollection([0.0148,0.0283,0.0546,0.1198,0.7825]);
			resultArrayCollection.addItem(country);
			
			country=new CountryData("Usa(real data)",0.0,true);
			country.isRealData=true;
			country.SalaryDistribution=new ArrayCollection([0.0543,0.1068,0.1566,0.2241,0.4582]);
			resultArrayCollection.addItem(country);
			
			return resultArrayCollection;
		}
		
	}
}